package com.tju.shortlink.admin.dto.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tju.shortlink.admin.common.serialize.PhoneDesensitizationSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户返回参数响应
 */
@Data
public class UserRespDTO {

    @Schema(name = "ID")
    private Long id;

    @Schema(name = "用户名")
    private String username;

    @Schema(name = "真实姓名")
    private String realName;

    @Schema(name = "手机号")
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;

    @Schema(name = "邮箱")
    private String mail;

}
